Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Tue, 4 Feb 2025 16:29:14 +0000 (17:29 +0100)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Tue, 4 Feb 2025 16:29:14 +0000 (17:29 +0100)
commitc08e935c12123bdd34dc737653a651442e1cbb57
treed84e791668964be93f8f40bf3f798509a7a84fff
parent76509de05481ed07925240ce6df7a48a2f469f66
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas